package com.wangzefeng.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 商品表
 * </p>
 *
 * @author wangzefeng
 * @since 2021-03-18
 */
public class GoodsInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "goods_id", type = IdType.AUTO)
    private Integer goodsId;

    /**
     * 商品名称
     */
    private String goodsName;

    /**
     * 所属店铺
     */
    private Integer shopId;

    /**
     * 所属店铺名称
     */
    private Integer shopName;

    /**
     * 价格
     */
    private BigDecimal goodsPrice;

    /**
     * 优惠后价格
     */
    private BigDecimal goodsAfterDiscountPrice;

    /**
     * 商品主图片id
     */
    private Integer goodsImageId;

    /**
     * 商品描述
     */
    private String goodsDesc;

    /**
     * 商品类型
     */
    private Integer goodsMainTypeId;

    /**
     * 商品类型名称
     */
    private String goodsMainTypeName;

    /**
     * 商品自定义类型
     */
    private Integer goodsCustomTypeId;

    /**
     * 商品自定义类型名称
     */
    private String goodsCustomTypeName;

    /**
     * 商品状态
     */
    private Integer goodsStatus;

    /**
     * 商品已售数量
     */
    private Integer goodsSellCount;

    /**
     * 商品地址
     */
    private String goodsAddress;

    /**
     * 备注信息
     */
    private String remark;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 创建时间
     */
    private Date createTime;


    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public Integer getShopId() {
        return shopId;
    }

    public void setShopId(Integer shopId) {
        this.shopId = shopId;
    }

    public Integer getShopName() {
        return shopName;
    }

    public void setShopName(Integer shopName) {
        this.shopName = shopName;
    }

    public BigDecimal getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(BigDecimal goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public BigDecimal getGoodsAfterDiscountPrice() {
        return goodsAfterDiscountPrice;
    }

    public void setGoodsAfterDiscountPrice(BigDecimal goodsAfterDiscountPrice) {
        this.goodsAfterDiscountPrice = goodsAfterDiscountPrice;
    }

    public Integer getGoodsImageId() {
        return goodsImageId;
    }

    public void setGoodsImageId(Integer goodsImageId) {
        this.goodsImageId = goodsImageId;
    }

    public String getGoodsDesc() {
        return goodsDesc;
    }

    public void setGoodsDesc(String goodsDesc) {
        this.goodsDesc = goodsDesc;
    }

    public Integer getGoodsMainTypeId() {
        return goodsMainTypeId;
    }

    public void setGoodsMainTypeId(Integer goodsMainTypeId) {
        this.goodsMainTypeId = goodsMainTypeId;
    }

    public String getGoodsMainTypeName() {
        return goodsMainTypeName;
    }

    public void setGoodsMainTypeName(String goodsMainTypeName) {
        this.goodsMainTypeName = goodsMainTypeName;
    }

    public Integer getGoodsCustomTypeId() {
        return goodsCustomTypeId;
    }

    public void setGoodsCustomTypeId(Integer goodsCustomTypeId) {
        this.goodsCustomTypeId = goodsCustomTypeId;
    }

    public String getGoodsCustomTypeName() {
        return goodsCustomTypeName;
    }

    public void setGoodsCustomTypeName(String goodsCustomTypeName) {
        this.goodsCustomTypeName = goodsCustomTypeName;
    }

    public Integer getGoodsStatus() {
        return goodsStatus;
    }

    public void setGoodsStatus(Integer goodsStatus) {
        this.goodsStatus = goodsStatus;
    }

    public Integer getGoodsSellCount() {
        return goodsSellCount;
    }

    public void setGoodsSellCount(Integer goodsSellCount) {
        this.goodsSellCount = goodsSellCount;
    }

    public String getGoodsAddress() {
        return goodsAddress;
    }

    public void setGoodsAddress(String goodsAddress) {
        this.goodsAddress = goodsAddress;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "GoodsInfo{" +
        "goodsId=" + goodsId +
        ", goodsName=" + goodsName +
        ", shopId=" + shopId +
        ", shopName=" + shopName +
        ", goodsPrice=" + goodsPrice +
        ", goodsAfterDiscountPrice=" + goodsAfterDiscountPrice +
        ", goodsImageId=" + goodsImageId +
        ", goodsDesc=" + goodsDesc +
        ", goodsMainTypeId=" + goodsMainTypeId +
        ", goodsMainTypeName=" + goodsMainTypeName +
        ", goodsCustomTypeId=" + goodsCustomTypeId +
        ", goodsCustomTypeName=" + goodsCustomTypeName +
        ", goodsStatus=" + goodsStatus +
        ", goodsSellCount=" + goodsSellCount +
        ", goodsAddress=" + goodsAddress +
        ", remark=" + remark +
        ", updateTime=" + updateTime +
        ", createTime=" + createTime +
        "}";
    }
}
